package com.xiehospital.web.controller.system;

import com.xiehospital.common.core.controller.BaseController;
import com.xiehospital.system.service.ISysChartsService;
import com.xiehospital.system.service.ISysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xiehospital.common.core.domain.AjaxResult;

/**
 * EchartsController
 *
 * @author xierujian
 * @date 2024-02-21
 */
@RestController
@Api("图标")
@RequestMapping("/system/charts")
public class SysEchartsController extends BaseController {

    @Autowired
    private ISysChartsService chartsService;

    @ApiOperation("床位-柱状图")
    @GetMapping("/bedlist")
    public AjaxResult getBedList() {
        return AjaxResult.success(chartsService.bedList());
    }

    @ApiOperation("医生信息表")
    @GetMapping("/UserForDeptlist")
    public AjaxResult getUserForDeptList() {
        return AjaxResult.success(chartsService.UserForDeptList());
    }
    @ApiOperation("床位信息表")
    @GetMapping("/BedForStatuslist")
    public AjaxResult getBedForStatusList() {
        return AjaxResult.success(chartsService.BedForStatusList());
    }
    @ApiOperation("出院")
    @GetMapping("/dischargelist")
    public AjaxResult getDischargelist() {
        return AjaxResult.success(chartsService.Dischargelist());
    }

}
